package com.woniu.dao;

import com.woniu.pojo.CommunityOrder;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface CommunityOrderMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(CommunityOrder record);

    int insertSelective(CommunityOrder record);

    CommunityOrder selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(CommunityOrder record);

    int updateByPrimaryKey(CommunityOrder record);

    @Select(value = "select co_num from community_order where co_activity_id=#{activityId} and co_user_id=#{userId} order by id desc")
    List<String> selectById(Integer activityId, Integer userId);
}